home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / COM / XTML v1.3.0.sit / XTML v1.3.0 / XTML Readme < prev    next >
Text File  |  1995-12-14  |  9KB  |  158 lines

  1.                                            eXcel Table Markup Language
  2.                                                                                                                                   version 1.3.0
  3.  
  4. Copyright ゥ1995, by Ken Sayward.  All rights reserved.
  5. Please send questions, comments and suggestions to Sayward@kagi.com
  6.  
  7. The latest version and documentation can be fo und on my AOL web page at http://users.aol.com/ksayward/
  8.  
  9. Description
  10. XTML was created for one basic purpose:  To create HTML Tables quickly and easily. If you have data in a Microsoft Excel spreadsheet, XTML can convert it into a table ready for inclusion in your web site - with one command. You can use the normal excel formatting commands to assign font styles and text alignment, and XTML will produce the necessary HTML tags to reproduce the table on the web. The resulting HTML source is saved into a text file, where you can edit and fine-tune it just as you would any of your other web files.
  11.  
  12. What you need
  13. ・ Microsoft Excel version 5.0 or later (Macintosh or Windows versions).
  14. ・ 7 bucks. This is shareware :-)
  15.  
  16.    Please send a check or money order for $7.00 (US) to:
  17.  
  18.      Ken Sayward
  19.      155 Flanders Rd
  20.      Niantic, CT 06333
  21.      USA
  22.  
  23. NEW:  If you wish to pay via credit card, foreign currency, via email or fax, then please use the
  24.               included Register program. This uses the Kagi shareware registration service to provide simple
  25.               and flexible shareware payment options.
  26.  
  27. I did spend quite a bit of time writing this to be as useful as possible; If you use it for more than a few days, please register it. If you send me your email address along with the 7 bucks, I'll make sure you get notification of the latest versions when anything changes. 
  28.  
  29. Installation
  30. Macintosh - 'XTML Add-In' is an Add-in module for Microsoft Excel v5.0 or later. Just drop it in the 'Excel Startup Folder (5)' folder inside your preferences folder within the system folder. If you don't have a folder called 'Excel Startup Folder (5)', simply make one and drop the XTML Add-in file into it.
  31.  
  32. Windows - 'XTML.XLA' is an Add-in module for Microsoft Excel v5.0 or later. Just drop it in the '¥XLStart' subdirectory inside your Excel 5 directory.
  33.  
  34. Note that the add-in file is binary compatible across Mac and Windows platforms. For Macintosh, the suggested name is "XTML Add-In"; for Windows, the suggested name is "XTML.XLA" (actually, you can name the add-in file anything you want, subject to the restrictions of your operating system).
  35.  
  36. That's it. The next time you launch Excel, you'll have a new item in the 'Tools' menu, called "XTML", with a few subitems (explained below).
  37.  
  38. How it works
  39. 1) Create your spreadsheet table in Excel (what better place to maintain tabular data?)
  40. 2) Format the cells if necessary.
  41.  
  42.     XTML will honor the following, on a cell-by-cell basis:
  43.     - bold cells will get marked up as <strong> - (default tag can be changed - see preferences below).
  44.     - italic cells will get marked up as <em> (emphasis) - (default tag can be changed - see preferences below).
  45.     - bold italic cells will get both <strong> and <em> tags - (default tags can be changed - see preferences below).
  46.     - Centered cells will get <td align=center> tags
  47.     - Right-aligned cells will get <td align=right> tags
  48.     - Numeric formats (currency, commas, percent, etc.)
  49.     - Numeric cells will default to right aligned, where no specific alignment is applied to the cell.
  50.     - Cells formatted with Excel's "center across selection" will get the appropriate COLSPAN tag.
  51.     - Column widths as a percentage of total table width (using <td width="x%"> tags). See the explanation below.
  52.  
  53. 3) Position the Excel cursor in any of the cells within the target table
  54. 4) Select 'Convert to HTML Tableノ' from the 'XTML' pop-up menu in the 'Tools' menu. You'll see the following dialog:
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77. HTML Table Options explained
  78. ・ Input Range. The range of excel cells you would like to create HTML source for. Excel will do a best guess based on the active cell when you select "Convert to HTML Tableノ" from the menu. You can change the input range by selecting the cells you wish to work with, while the dialog box is open.
  79.  
  80. ・ Window Title. The text which will appear in the window title when the page is viewed with a web browser. The default is the name of the Excel worksheet.
  81.  
  82. ・ Table Caption. The text which will appear above the table, with <caption> & <h2> tags. The default is the name of the Excel worksheet. You can change the header tags to whatever you'd like in the resulting .html file. It seemed to me that <h1> was a bit of overkill.
  83.  
  84. ・ Output Filename. The filename for the resulting text file. The default is the name of the Excel worksheet, with ".html" appended to it.  Note: the file will be automatically saved to the current active folder as shown in Excel when you do a 'save asノ' or 'openノ'.
  85.  
  86. ・ Header and Cell Formatting. Determines the look of the resulting HTML source.
  87.    - Default: Marks up the first row of the table with <th> tags; no other formatting.
  88.    - Use Excel Formatting: Marks up all cells according to their format and alignment as described in 'How it works'.
  89.    - None: No special formatting at all. Only marks up the table with <tr> and <td> tags.
  90.  
  91. ・ Include Table Border.  Just what it says.
  92.  
  93. ・ Borders on blank cells.  If you check this option, XTML will insert メ モ into HTML table cells, so that those cells get borders around them as well. Only applies when the ヤInclude Table Borderユ option is selected.
  94.  
  95. ・ Border width [  ] pixels.  Size of the table border (if enabled). Valid range is 1 - 25. Values outside of this range will be reset to 1 (the default).
  96.  
  97. ・ Table Width [  ] %.  Specify the percentage of the width of the web page to display the table. For example, if you enter 50%, the table will be centered on the page but only use half of the current page width. Default is 100%.
  98.  
  99.  
  100. Setting Preferences
  101. XTML v1.1.0 and higher maintains a file in your 'preferences' folder called 'XTML Prefs' (in the Windows version, the prefs file is called 'XTMLPREF.txt' and is stored in the same directory as the Excel application file). This file is created automatically the first time you select one of the XTML menu items. It is initially created with default values, but you can change them as follows. Select 'Preferencesノ' from the 'XTML' pop-up menu in the 'Tools' menu. You'll see the following dialog:
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124. XTML Preferences explained
  125. ・ Horizontal Alignment. Check this box to tell XTML to preserve the alignment of cells as formatted in Excel.
  126.  
  127. ・ Column widths. Check this box to tell XTML to use a <td width="x%"> tag. This tag is added in the first table row which does not have any COLSPAN tags. XTML calculates the width of each column as a percentage of the total table width. Note that despite all the column width formatting you might use in your HTML, web browsers often muck around with the column widths anyway. However, this option does give you some control.
  128.  
  129. ・ Numbers default to right aligned. Check this box to tell XTML to automatically tag numeric cells as right aligned, unless another alignment has been applied to the cell.
  130. ・ Numeric Formats. Check this box to tell XTML to preserve the formatting of numeric cells, such as currency, commas, percentages, etc.
  131.  
  132. ・ Font Styles. Check these boxes to tell XTML to preserve the font style of cells as formatted in Excel. In addition, you can specify which tags to use for the (currently) three styles supported. The defaults are shown in the dialog box above.
  133. Caution:If you change the tags for bolditalic, and you still use two different tags (like <b><i>), be careful to get the closing tags in the correct order.
  134.  
  135. ・ Display file format warnings after processing. Check this box so that XTML will remind the user about the fact that output files must be saved as 'formatted text (space delimited)'. If this is unchecked, no warning dialogs will be displayed.
  136.  
  137. ・ Reset Defaults. Click this button to reset the default values for all options in this dialog box.
  138.  
  139.  
  140.  
  141. Future plans
  142. Pretty soon (if I can do this without adding too much processing overhead):
  143.   ・ Preserve vertical alignment (especially now that XTML handles carriage returns within cells).
  144.   ・ An option to 'compact' the output HTML code to reduce all the carriage returns. This would result in smaller
  145.      HTML files, but they would be less readable.
  146.   ・ Set 'row-level' alignment in the <tr> tags, if it would reduce the repetition in the <td> tags.
  147.  
  148. A little later (maybe):
  149.   ・ Handle 'ROWSPAN'
  150.   ・ Nested tables.
  151.  
  152.  
  153. Distribution
  154. This software is shareware. Permission is hereby granted for non-commercial distribution of unmodified copies of this software, so long as this documentation is included. For information about including this software on compilation CD-ROMs or disks, please contact the author.
  155.